package com.mark.springsecurity.service;

import com.mark.springsecurity.domain.SysRole;
import com.mark.springsecurity.dto.req.SysRoleCmd;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface RoleService {
    void save(SysRole sysRole);

    SysRole getOne(Long id);

    void update(Long id, SysRoleCmd sysRoleCmd);

    void delete(Long id);

    Page<SysRole> findAll(Example<SysRole> example, Pageable pageable);
}
